﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CTTest.Common;

namespace CTTest.Essential
{
    class CepUtil
    {
        public static bool TestShProvinceService(string xmlContent, WriteLogger log)
        {
            const string url = "http://192.168.31.31:8080/stvcep_ape/shProvinceService";

            var html = HttpUtil.GetRawHtml(url, data: xmlContent, encode: Encoding.UTF8);

            log("Response text is:\r\n{0}", html);
            //<?xml version="1.0" encoding="UTF-8"?><ContractRoot><TcpCont><ActionCode>1</ActionCode><TransactionID>6001030001200906220000000622</TransactionID><RspTime>20100416171520</RspTime><Response><RspType>0</RspType><RspCode>0000</RspCode><RspDesc>成功</RspDesc></Response></TcpCont><SvcCont><BPMOrderEvent><OrderSum>1</OrderSum><BPMOrder><BizEventNbr>2009062200000001</BizEventNbr><OrderEventTime>20090622143030</OrderEventTime><RspType>1</RspType><RspCode>1116</RspCode><RspDesc> user status error!</RspDesc></BPMOrder></BPMOrderEvent></SvcCont></ContractRoot>

            return true;
        }
    }
}
